package org.aeon.newsmanagersystem.service;

import org.aeon.newsmanagersystem.pojo.Comments;
import org.aeon.newsmanagersystem.pojo.News;
import org.aeon.newsmanagersystem.pojo.other.PageInfo;

/**
 * @author: MissingAeon
 * @date: 2024/3/27 17:25
 * @description:
 */
public interface CommentsService {
    /**
     * 获取特定新闻评论
     *
     * @param pageInfo
     * @return
     */
    PageInfo<Comments, News> newsComments(PageInfo<Comments, News> pageInfo);

    /**
     * 根据id删除新闻评论
     *
     * @param cid
     * @return
     */
    boolean delete(Integer cid);

    /**
     * 添加新闻评论
     *
     * @param comments
     * @return
     */
    boolean add(Comments comments);
}
